<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/layouts/include/taglib.jsp" %>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta name="decorator" content="step" />
	<script type="text/javascript">
	var parentId = "${param.parentId}";	
	
	
	</script>
</head>
<body>
<div class="doc-menu">
	 <%@ include file="/jsp/cd/doc/cdDocLeftZtree.jsp" %>	
</div>

<div class="doc-content mdl-130">
	<button class="btn-ace f-ml20 btn-upload" type="button" id="uploadFile">
				<i class="icon-upload-alt"></i> 上传附件		
	</button>
	 <!-- 进度条  -->
	<span style="width:30%;display:inline-block;vertical-align: middle;margin-left:20px;">  
		<div class="progress progress-striped active" id="fileActive" style="margin-bottom:0;display: none;">
			<div class="progress-bar progress-bar-success" id="progress" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
				<span class="sr-only">上传中</span>
			</div>
		</div>
	</span> 

	<div class="col-sm-12 my-doc-content">
		
	</div>	
	<hr/>
	<div class="my-doc-breadcrumbs">
		<h6 class="text-primary Ordered List Item" id="pathAll">
			<span id="skipProject">全部文件</span>
			<span id="navigationProject">									
			</span>
		</h6>
	</div>
	<div class="my-doc-content">
		<div class="table-responsive">
			<table id="sample-table-1" class="table table-hover">
				<thead>
					<tr>
						<th class="center col-xs-1">
						<input type="hidden" id="restoreUuidAll">
							<label>
							
								<input type="checkbox" class="ace" id="checkBoxChanges" name="checkBoxChanges"/>
								<span class="lbl"></span>
							</label>
						</th>
						<th id="fileName">文件名</th>
																				
					</tr>
				</thead>
				
				<tbody id="projectFieList">
				
				</tbody>												
			</table>
		</div>
	</div>

		
</div>
  <script type="text/javascript" src="${ctx}/jsp/cd/doc/projectFileList.js"></script>
  <script type="text/javascript">
  if (!parentId) {
		document.getElementById("uploadFile").style.display = "none";
	}
  </script>

<!-- 列表显示模板 -->
  <script id="showProjectFileListMtp" type="x-tmpl-mustache">
	{{#data}}
	<tr class="clickTr" name="clickName">
		<td class="center col-xs-1">
			<label>
				<input type="checkbox"  name="changeCheckboxFile" class="ace selectCheck"  value="{{uuid}}"/>
				<span class="lbl"></span>
			</label>	
		</td>
		<td class="cdDocmousedown  col-xs-10" id="{{uuid}}">              
			{{>itemMtpLink}}
		</td>
	</tr>
	{{/data}}
  </script>
  
  <script id="itemMtp" type="x-tmpl-mustache">
			<a name="changeFile"  class="folderCls col-xs-8" href="#" key="{{uuid}}" folderType="{{folderType}}">
				{{#isfolder}}
					<i class="icon-folder-close blue"></i>
				{{/isfolder}}
				{{^isfolder}}
					<i class="icon-book blue"></i>
				{{/isfolder}}
				{{folderName}}
			</a>	
			<div class="pull-right col-xs-4 action-buttons">
				{{^isfolder}}
					<a class="pull-right red bigger-130 downupLoad" href="#" key="{{uuid}}"><i class="icon-download-alt  bigger-80" title="下载"></i></a>
				{{/isfolder}}
				{{^isParentId}}
					<a class="pull-right bigger-130 moveFrimLibrary" href="#" fileName="{{folderName}}" target="_blank" uuid="{{uuid}}" title="移到公司文库"><i class="icon-check-empty"></i></a>
				{{/isParentId}}
			</div>
  </script>
</body>
